import request from '@/utils/request'

const modelName = 'system-device'

// 当前用户的设备展示(farmId用来查询用户名下的某一个农场信息)
export const farmInfoAndOnlineDisplay = farmId => {
  return request({
    url: modelName + '/device/device/onlineDevice',
    method: 'get',
    params: {
      farmId: farmId,
    },
  })
}
